package services;

import frame.service.anno.ActionParam;
import frame.service.anno.MiayAction;
import frame.service.anno.MiayService;
import frame.service.context.ServiceContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@MiayService(module = "common", service = "session")
public class SecureHelloService {
    Logger logger = LoggerFactory.getLogger(SecureHelloService.class);

    @MiayAction(comment = "会话有效性验证接口")
    @ActionParam(type = ActionParam.Type.Response, name = "valid", use = "返回会话验证结果")
    public void valid(ServiceContext serviceContext){
        serviceContext.setRespDataVal("valid", "ok");
        logger.info("Access was successful.");
    }
}
